/**
 * Licensed under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 * 
 *         http://www.apache.org/licenses/LICENSE-2.0
 *         
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. Unless required by applicable law or
 * agreed to in writing, software distributed under the License is
 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the specific
 * language governing permissions and limitations under the License.
 */
package org.rhok.pdx.ncn.datatypes;

/**
 * Simple storage class. Holds information regarding a particular location, formatted as a latitude
 * and longitude, and the wifi / cell signal strengths found at the time provided. Used to organize
 * data retrieved from database.
 * @author pfritzsche
 */
public class UploadData extends Data {
	
	private double lat;
	private double lon;

	/**
	 * Instantiates a new upload data.
	 *
	 * @param time the time
	 * @param lat the lat
	 * @param lon the lon
	 * @param signalStrength the signal strength
	 * @param wifiStrength the wifi strength
	 */
	public UploadData(long time, double lat, double lon, int signalStrength, int wifiStrength) {
		super(signalStrength, wifiStrength, time);
		this.lat = lat;
		this.lon = lon;
	}
	
	/**
	 * Latitude getter.
	 *
	 * @return the latitude at the time the location was gathered
	 */
	public double lat() { return lat; }
	
	/**
	 * Longitude getter.
	 *
	 * @return the longitude at the time the location was gathered
	 */
	public double lon() { return lon; }
}
